package com.accloud.service;

import com.google.gson.Gson;
import java.util.Collections;
import java.util.Map;

public class ClassTopic {
    private final String className;
    private final int opType;
    private final Map<String, Object> primaryKey;

    private ClassTopic(String className2, Map<String, Object> primaryKey2, int opType2) {
        this.className = className2;
        this.primaryKey = Collections.unmodifiableMap(primaryKey2);
        this.opType = opType2;
    }

    public static Topic format(String className2, Map<String, Object> primaryKey2, int opType2) {
        return new Topic((String) null, Topic.CLASS, new Gson().toJsonTree(new ClassTopic(className2, primaryKey2, opType2)));
    }
}
